<?php /* УТФ-8:fix */

class SPImodel__catalogs extends SPImodel__dummy
{
    public function select_sitemap()
    {
        $query =    " SELECT id, type, name "
               .      " FROM ".SPIcfg::$store['table:catalogs']
               .     " WHERE workstatus=1 "
               .  " ORDER BY type ASC, id DESC "
               ;

        return SPIstore::I()->query( $query );
    }
}
